package org.yuanqiframework.yuanqi.boot.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.yuanqiframework.yuanqi.boot.sys.entity.SysUserRole;
import org.yuanqiframework.yuanqi.boot.sys.service.SysUserRoleService;
import org.yuanqiframework.yuanqi.boot.sys.mapper.SysUserRoleMapper;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author cbt28
* @description 针对表【sys_user_role(用户角色表)】的数据库操作Service实现
* @createDate 2025-09-26 23:29:03
*/
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole>
    implements SysUserRoleService{

    @Override
    public List<SysUserRole> listByUserId(String userId) {
        return list(new LambdaQueryWrapper<SysUserRole>()
                .eq(SysUserRole::getUserId, userId));
    }
}




